home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 December / Chip_2001-12_cd1.bin / zkuste / tuning / download / xteq / setup.exe / {app} / plugins / XQ Network Logoff 1.xpl < prev    next >
Text File  |  2001-05-14  |  2KB  |  51 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH 1"="Startup/Shutdown\Shutdown\Windows NT/2K/XP\00) Shutdown Menu"
  5. "NAME"="Windows NT Logoff Options"
  6. "VERSION"="1.10"
  7. "OSVERSION"="01000"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="Show "Shut down and Power off" in Shut down dialog"
  10. ***"DESCRIPTION 1"="Activate "Show Shut down & Power off" if this option should be available if an user selectes to shut down the computer. Else it's only possible to shut down the computer and switch it manually off."
  11. "DESCRIPTION 1"="This option, if enabled, gives you an option to  shut down and power off your Windows NT system."
  12. "DESCRIPTION 2"="Some computers do not support the power off option properly under Windows NT.  If your computer fails to shut down properly or automatically reboots when you enable this option, disable it in X-Setup the next time you boot the computer up."
  13. "AUTHOR"="Xteq Systems"
  14. "CONTACTURL"="http://www.xteq.com"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"=" "
  17. "COMMENT 2"="Thanks to Alexander Khoroshev <aelric@atnet.ru> for the bug notice!"
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25. sP="HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\"
  26. sV2="PowerdownAfterShutdown"
  27.  
  28. Sub Plugin_Initialize 
  29.     i=RegReadValue(sp & sv2)
  30.     if i=1 then SetUIElement 1,true
  31. End Sub
  32.  
  33. Sub Plugin_CheckData(ElementIndex)
  34. End Sub
  35.  
  36. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  37.  b=GetUIElement(1)
  38.  if b=true then
  39.   Call RegWriteValue(sp & sv2,"1",1)
  40.  else
  41.   Call RegWriteValue(sp & sv2,"0",1)
  42.  end if
  43.  
  44. End Sub
  45.  
  46. Sub Plugin_Terminate 
  47. End Sub
  48.  
  49.  
  50.  
  51.